{extend name="defaults/layout"/}
{block name="seo"}
<title>{$title}站内搜索</title>	
<meta name="keywords" content="{$keywords},站内搜索" />
<meta name="description" content="{$description},站内搜索" />
<link rel="stylesheet" type="text/css" href="__STATIC__/semantic/semantic.min.css">
{/block}
{block name="toplink"}
<script>
    $(document).ready(function () {
        $('#mid').change(function () {
            var changMid = $(this).val();
            var ids = ',';
             $('#cid').val('');
             $('#cid').parent().find('div.text').html('所有栏目').addClass('default');
            $('#cid option').prop('disabled', false).each(function () {
                if (changMid != $(this).data('model')&&$(this).prop('value')) {
                    $(this).prop('disabled', true);
                    ids += $(this).prop('value') + ',';
                }
            });
            $('#cid').parent().find('.menu>div.item').removeClass('disabled').removeClass('selected').removeClass('active').each(function () {
                if (ids.indexOf($(this).data('value')) > 0) {
                    $(this).addClass('disabled');
                }
            });
        });
    });
</script>
{/block}
{block name="content"}
<div class="banner-page container">
</div>


<div id="box">
    <div class="ui container">
        <div class="row">
        <div class="col-md-12 paddingleft-none">
        <div class="breadcrumb">
            <span class="breadtitle">搜索结果</span>
            <span class="breadnav">
            <a class="section" href="{:url('index/index')}"> 首页</a>
            / <a class="section" href="#"> 搜索结果</a>
            </span>
            <div class="clearfix"></div>
        </div>
        <div class="ui raised segment">
            <div class="ui blue ribbon label large">
                <span>一共{$list.total}条 {$list.last_page}页 每页{$list.per_page}条</span>
            </div>
            <div class="ui divider"></div>
            <form method="get" action="">
                <div class="ui action left icon input huge">
                    <i class="search icon"></i>
                    <input type="text" name="keyword" placeholder="输入关键词..." value="{$keyword}">
                    <button class="ui blue button" type="submit">搜索</button>
                </div>
            </form>
        </div>
            <ul class="list-box">
                {volist name="list.data" id="vo"}
                    <li>
                        <a href="{$vo.url}">
                            <span class="list-box-pic col-md-3">
                                {empty name="vo.cover.path"}
                                <img src="__STATIC__/home/defaults/images/errimg.jpg">
                                {else /}
                                <img src="__UPLOAD__/{$vo.cover.path}">
                                {/empty}

                            </span>
                                <span class="list-box-text col-md-9">
                                <h3>【{$columList[$vo.cname]['title']}】{:str_ireplace($keyword,"<font style='color:red'>$keyword</font>",$vo.title)}</h3>
                                <span>{:date('Y-m-d H:i:s',$vo.create_time)}</span>
                                <p>{:str_ireplace($keyword,"<font style='color:red'>$keyword</font>",$vo.description)}</p>
                            </span>                      
                        </a>
                        <div class="clearfix"></div>
                    </li>
                {/volist}
            </ul>
            {$page|raw}
            <div class="clearfix"></div>
        </div>
    </div>
    </div>
</div>

{/block}